function acceptName(ele){
    var id=ele.id;
    var sentence="accept";
    var recipient=getCookie("Number");
    var data={
        id:id,
        recipient:recipient,
        sentence:sentence
    };
    alert("this +"+id);
    $.ajax({
        type:"post",
        dataType:"text",
        url:"/fp_war_exploded/updateMission",
        data:JSON.stringify(data),
        success:function (result) {
            if (result.trim()=="success"){
                alert("成功");
            }
            else{
                alert("error");
            }
        },
        error:function (result) {
            alert("87Line Search error");
        }
    });

}
$(document).ready(function () {
    $("button.accept").click(function () {
        alert("accept");
        acceptName(this);
    });
    $("button.think").click(function () {
        alert("think");
    });
});
